package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/6
 * @TIME: 22:49
 * @PROJECT_NAME: mallproject2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegionListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<RegionProvinceVO> list;

    public static RegionListBean data(long total, Integer pages, Integer limit, Integer page, List list) {
        RegionListBean regionListBean = new RegionListBean();
       regionListBean.setTotal((int) total);
       regionListBean.setPages(pages);
       regionListBean.setPage(page);
       regionListBean.setLimit(limit);
       regionListBean.setList(list);
        return regionListBean;
    }
}
